package cn.helios.controller;

import cn.helios.domain.User;
import cn.helios.feign.OpenFeign;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @Autowired
    private OpenFeign openFeign;

    @GetMapping("/user/{id}")
    public User getById(@PathVariable Long id){
        return User.builder().id(1L).username("儿子").desc("嗨嗨！").build();
    }
}
